extends TextureProgressBar

@export var player: Player


func _process(delta: float) -> void:
	update_health_bar()

func update_health_bar():
	if player == null: return
	value = player.health / player.max_health * max_value
	pass
